#ifndef LIBTORRENT_FILES_CHECK_H
#define LIBTORRENT_FILES_CHECK_H
#include "service.h"

namespace torrent {

class Files;

class FilesCheck : public Service {
public:
	typedef std::list<FilesCheck*> List;

	~FilesCheck();

	static void check(Files* f, Service* s, int arg);

protected:
	FilesCheck(Files* f, Service* s, int arg);

private:
	static List m_checks;

	unsigned int m_position;

	Files* m_files;
	Service* m_service;
	int m_arg;
};

} // namespace torrent

#endif /* LIBTORRENT_FILES_CHECK_H */
